// 该文件专门用于创建整个应用的路由器
import VueRouter  from 'vue-router'
// 引入组件
import day01 from '../work/day01/day01.vue'

// 引入day02路由规则
import day02 from '../work/day02/router/index.js'
// 引入day03路由规则
import day03 from '../work/day03/router/index.js'
// 引入day04路由规则
import day04 from '../work/day04/router/index.js'
// 引入day05路由规则
import day05 from '../work/day05/router/index.js'
// 引入day06路由规则
import day06 from '../work/day06/router/index.js'
// 引入day07路由规则
import day07 from '../work/day07/router/index.js'
// 引入day08路由规则
import day08 from '../work/day08/router/index.js'
// 引入day09路由规则
import day09 from '../work/day09/router/index.js'

import showwork from '../src/components/ShowWork.vue'
// 找不到页面
import notFound from '../src/components/NotFound.vue'

export default new VueRouter({
    routes:[
        {
            path:'',
            required:'/'
        },
        {path:'/showwork',component:showwork ,children:[
            {
                path:"day01",
                // name:"day01",
                component:day01
            },
            ...day02,...day03,...day04,...day05,...day06,...day07,...day08,...day09
        ]},
        {
        path:"*",
        component:notFound
        }
  ]
})